package io.renren.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import io.renren.dao.CollectionDao;
import io.renren.entity.CollectionEntity;
import io.renren.service.CollectionService;

import java.util.List;


@Service("collectionService")
public class CollectionServiceImpl extends ServiceImpl<CollectionDao, CollectionEntity> implements CollectionService {

    @Override
    public List<CollectionEntity> myCollectionList(Integer userid){
        List<CollectionEntity> list = baseMapper.myCollectionList(userid);
        return list;

    }

    @Override
    public CollectionEntity getCollection(Integer userid,Integer doctorid){
        CollectionEntity entity = baseMapper.getCollection(userid,doctorid);
        return entity;
    }
}
